home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacGames Sampler
/
PHT MacGames Bundle.iso
/
MacSource Folder
/
Samples from the CD
/
C and C++
/
POSIX
/
ThinkCPosix
/
mktemp.c
< prev
next >
Wrap
Text File
|
1992-09-11
|
280b
|
17 lines
/* $Id: $ */
/*
* This presently overwrites the contents of template.
*/
#include "ThinkCPosix.h"
char *mktemp(char *template)
{
if (template == NULL || strlen(template) < 8) {
fprintf(stderr, "mktemp: template too short\n");
return NULL;
}
return tmpnam(template);
}